package com.hjy.cloud.order.config;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import user.entity.User;

@FeignClient(name ="my-cloud-user")
public interface UserFeignClient {
    @GetMapping("/api/user/findUserById/{userId}")
    User findUserById(@PathVariable("userId") Long userId);

}
